package com.framework.modules.live.controller;

import com.framework.common.utils.PageUtils;
import com.framework.common.utils.R;
import com.framework.common.validator.ValidatorUtils;
import com.framework.modules.base.service.UserIncomeHistoryService;
import com.framework.modules.live.entity.LiveHistoryEntity;
import com.framework.modules.live.service.LiveHistoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.Map;


/**
 *  
 *
 * @author MIT
 * @email litmiss@gmail.com
 * @date 2021-01-04 03:13:24
 */
@RestController
@RequestMapping("live/liveincomehistory")
@Api(tags = "LiveHistoryController")
public class LiveIncomeHistoryController {
    @Autowired
    private UserIncomeHistoryService userIncomeHistoryService;

    /**
     * 列表
     */
    @RequestMapping("/list")
        @RequiresPermissions("live:liveincomehistory:list")
        @ApiOperation("list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = userIncomeHistoryService.queryLiveIncomeHistory(params);
        return R.ok().put("page", page);
    }


}
